<?php

class examples_single_dao_SampleDao {
    protected $sampleData = array(
        'hello' => array( 'id' => 5 ),
        'bob' => array( 'id' => 7 ),
        'sample' => array( 'id' => 42 )
    );
    public function contains($key) {
        if ( array_key_exists($key, $this->sampleData) ) {
            return true;
        }
        return false;
    }
    public function idFor($key) {
        if ( $this->contains($key) ) {
            return $this->sampleData[$key]['id'];
        }
        return null;
    }
}

?>
